﻿<ui:View x:Class="Coolzon.UI.ViewerApp.Views.RenderView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ui="clr-namespace:Coolzon.UI.Core.Views;assembly=Coolzon.UI.Core"
             xmlns:core="clr-namespace:Coolzon.UI.Core;assembly=Coolzon.UI.Core"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Focusable="True">
    <Grid x:Name="_ctlLayout" Background="Black">
        <TextBox Width="0" Height="0" Name="textbox"/>
        <core:Frame x:Name="_ctlMainFrame">

        </core:Frame>
        <StackPanel Name="ctlPanelDebugToolbar" Visibility="Hidden" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal">
        </StackPanel>
        <Button Width="50" Height="80" Name="ctlBtnBack" HorizontalAlignment="Left" VerticalAlignment="Center" Click="ctlBtnBack_Click" Style="{StaticResource btn-hoverable}">
            Back
        </Button>
        <Button Width="50" Height="80" Name="ctlBtnNext" HorizontalAlignment="Right" VerticalAlignment="Center" Click="ctlBtnBack_Click" Style="{StaticResource btn-hoverable}">
            Next
        </Button>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" Visibility="Hidden">
            <RadioButton GroupName="StretchMode" Name="ctlRadioFill" Content="拉伸" Foreground="White" Margin="0,0,5,0" Checked="OnRadioStretchModeChecked"/>
            <RadioButton GroupName="StretchMode" Name="ctlRadioUniformToFill" Content="填充" Foreground="White" Margin="5,0,0,0" Checked="OnRadioStretchModeChecked"/>
            <RadioButton GroupName="StretchMode" Name="ctlRadioUniform" Content="适应" Foreground="White" Margin="5,0,0,0" Checked="OnRadioStretchModeChecked"/>
            <RadioButton GroupName="StretchMode" Name="ctlRadioNone" Content="居中" Foreground="White" Margin="5,0,0,0" Checked="OnRadioStretchModeChecked"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Visibility="Hidden">
            <TextBlock Text="定位到:" Foreground="White"/>
            <RadioButton GroupName="LocateMode" Name="ctlRadioToScene" Content="场景" Foreground="White" Margin="0,0,5,0" Checked="ctlRadioToScene_Checked"/>
            <RadioButton GroupName="LocateMode" Name="ctlRadioToArea" Content="区域" Foreground="White" Margin="5,0,0,0" Checked="ctlRadioToScene_Checked"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right">
            <Button Name="ctlBtnExit" Content="Exit" Click="ctlBtnExit_Click"  Style="{StaticResource btn-hoverable}"/>
        </StackPanel>
        <Canvas>
            <Ellipse Name="_ctlMagnifier" Width="800" Height="800" Stroke="Black" StrokeThickness="3" Visibility="Hidden"/>
        </Canvas>
        <Border Background="#55a2a2a2" HorizontalAlignment="Right" VerticalAlignment="Top" Opacity="0.5" Visibility="Hidden">
            <StackPanel Orientation="Horizontal">
                <Button Name="_ctlCheckOriginal" Content="O" Click="_ctlCheckOriginal_Checked"/>
                <Button Name="_ctlCheckHStretch" Content="H" Click="_ctlCheckOriginal_Checked"/>
                <Button Name="_ctlCheckVStretch" Content="V" Click="_ctlCheckOriginal_Checked"/>
                <Button Name="_ctlCheckStretch" Content="S" Click="_ctlCheckOriginal_Checked"/>
            </StackPanel>
        </Border>
        <TextBlock Name="_ctlTextSize" HorizontalAlignment="Left" VerticalAlignment="Top" Text="s" Visibility="Hidden"/>
        <!-- 滚动条 -->
        <ScrollBar Name="_ctlScrollBarHorizontal" Orientation="Horizontal" Height="15" VerticalAlignment="Bottom" Margin="50,0,50,0" Visibility="Hidden"
                   ValueChanged="_ctlScrollBarHorizontal_ValueChanged_1"/>
        <ScrollBar Name="_ctlScrollBarVertical" Orientation="Vertical" Width="15" HorizontalAlignment="Right" Margin="0,50,0,50" Visibility="Hidden"
                   ValueChanged="_ctlScrollBarVertical_ValueChanged_1"/>
        <Grid Opacity="0.5">
            <Border BorderBrush="Gray" BorderThickness="1" CornerRadius="3" Padding="5,2,5,2" Background="#44FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Top">
                <TextBlock Name="ctlLabelCaption" Text="" FontSize="24" Foreground="White"/>
            </Border>
        </Grid>
        <Grid Name="_ctlMask" Background="White" Visibility="Collapsed">
            <Border BorderBrush="Red" BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="渲染中..." HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="DarkBlue" Margin="20,10,20,10"/>
            </Border>
        </Grid>
    </Grid>
</ui:View>
